using System;
using System.Collections.Generic;
using System.Text;

namespace WorkTracker.Exceptions
{
	/// <summary>
	/// Exception cast when there is a problem with the application configuration.
	/// </summary>
	[Serializable]
	public class InvalidConfigurationException : ApplicationException
	{
		#region Constructors

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="message">Message.</param>
		public InvalidConfigurationException(string message) : base(message) { }

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="message">Message.</param>
		/// <param name="innerException">Inner exception.</param>
		public InvalidConfigurationException(string message, Exception innerException) : base(message, innerException) { }

		#endregion

	}

	/// <summary>
	/// Exception cast when there is a problem with connecting/reading/writing to/from database.
	/// </summary>
	[Serializable]
	public class DatabaseException : ApplicationException
	{
		#region Constructors

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="message">Message.</param>
		public DatabaseException(string message) : base(message) { }

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="message">Message.</param>
		/// <param name="innerException">Inner exception.</param>
		public DatabaseException(string message, Exception innerException) : base(message, innerException) { }

		#endregion

	}



}
